import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/index.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: "/index"
  },
  {
    path: '/index',
    name: 'index',
    component: index  
  },
  {
    path: '/classify',
    name: 'classify',
    component: () => import("@/views/classify")
  },
  {
    path: '/searchIndex',
    name: 'searchIndex',
    component: () => import("@/views/searchIndex")
  }
]

const router = new VueRouter({
  // mode: 'history',
  // base: process.env.BASE_URL,
  routes
})

export default router
